package com.hospital.doctor.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

//医嘱表

@AllArgsConstructor
@NoArgsConstructor
public class Medical {
    //医嘱id
    @ExcelIgnore
    private int mId;
    //病人id
    @ExcelIgnore
    private int pId;
    //医嘱内容
    @ExcelProperty(value = "医嘱内容",index = 1)
    private String mContent;
    //医嘱状态
    @ExcelProperty(value = "医嘱类型",index = 0)
    private String mStatus;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "开始时间",index = 2)
    private Date mStartTime;
    //执行时间
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "开嘱时间",index = 4)
    private Date mExeTime;
    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "结束时间",index = 3)
    private Date mEndTime;
    //医生id
    @ExcelIgnore
    private int dId;
    //是否执行
    @ExcelProperty(value = "是否被执行",index = 6)
    private String mExecute;
    //是否停止
    @ExcelProperty(value = "是否停止",index = 5)
    private int mStop;
    @ExcelIgnore
    private Doctor doctor;
    @ExcelIgnore
    private Patient patient;
    @ExcelIgnore
    private String pName;

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public int getmStop() {
        return mStop;
    }

    public void setmStop(int mStop) {
        this.mStop = mStop;
    }

    public String getmExecute() {
        return mExecute;
    }

    public void setmExecute(String mExecute) {
        this.mExecute = mExecute;
    }

    public int getmId() {
        return mId;
    }

    public void setmId(int mId) {
        this.mId = mId;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public String getmContent() {
        return mContent;
    }

    public void setmContent(String mContent) {
        this.mContent = mContent;
    }

    public String getmStatus() {
        return mStatus;
    }

    public void setmStatus(String mStatus) {
        this.mStatus = mStatus;
    }

    public Date getmStartTime() {
        return mStartTime;
    }

    public void setmStartTime(Date mStartTime) {
        this.mStartTime = mStartTime;
    }

    public Date getmExeTime() {
        return mExeTime;
    }

    public void setmExeTime(Date mExeTime) {
        this.mExeTime = mExeTime;
    }

    public Date getmEndTime() {
        return mEndTime;
    }

    public void setmEndTime(Date mEndTime) {
        this.mEndTime = mEndTime;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    @Override
    public String toString() {
        return "Medical{" +
                "mId=" + mId +
                ", pId=" + pId +
                ", mContent='" + mContent + '\'' +
                ", mStatus='" + mStatus + '\'' +
                ", mStartTime=" + mStartTime +
                ", mExeTime=" + mExeTime +
                ", mEndTime=" + mEndTime +
                ", dId=" + dId +
                ", doctor=" + doctor +
                ", patient=" + patient +
                '}';
    }
}
